package com.baizhi.controller;

import com.baizhi.service.UserThreadServcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UserThreadController {
    @Autowired(required = false)
    UserThreadServcie userThreadServcie;

//优化后的
    @RequestMapping("/selectAllCountThread")
    public Map UserThreadServcie() throws InterruptedException {
        return userThreadServcie.selectAllCountThread();
    }
    @RequestMapping("/selectAllCount")
    public Map selectAllCount(){
        return userThreadServcie.selectAllCount();
    }

}
